<template>
  <div class="open-platform">
    222
  </div>
</template>

<script>
export default {
  name: 'open-platform',
  data () {
    return {
      activeIndex: 0,
      tabList: [
        '1 申请账户',
        '2 查看接口文档',
        '3 接入测试环境',
        '4 接入正式环境'
      ],
      apiList: [
        {
          title: '采购充值API',
          list: [
            {
              name: '话费充值API'
            },
            {
              name: '油卡充值API'
            },
            {
              name: '视频会员API'
            },
            {
              name: '虚拟币充值API'
            },
            {
              name: '代充工具API'
            }
          ]
        },
        {
          title: '供应充值API',
          list: [
            {
              name: '话费卡充值提交API'
            },
            {
              name: '油卡充值API'
            },
            {
              name: '权益充值API'
            },
            {
              name: '代充工具API'
            }
          ]
        },
        {
          title: '卡密提交API',
          list: [
            {
              name: '话费卡充值提交API'
            },
            {
              name: '油卡充值API'
            },
            {
              name: '视频会员API'
            },
            {
              name: 'Q币代充API'
            },
            {
              name: '卷码提交API'
            }
          ]
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.open-platform {
  .banner-img {
    width: 100%;
    height: 400px;
  }
  .title {
    font-size: 30px;
    font-weight: 600;
    margin: 60px 0;
    text-align: center;
  }
  .tap-wrap {
    border: 1px solid var(--color-primary);
    display: flex;
    width: 60%;
    margin: 0 auto;
    border-radius: 6px;
    .item {
      flex: 1;
      border-right: 1px solid var(--color-primary);
      text-align: center;
      padding: 20px;
      cursor: pointer;
    }
    .active {
      color: #fff;
      background-color: var(--color-primary);
    }
  }
  .api-wrap {
    width: 80%;
    margin: 100px auto;
    .api-box {
      display: flex;
      margin-bottom: 30px;
      .left {
        flex: 3;
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 30px;
        border-radius: 10px;
      }
      .right {
        flex: 7;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 25px;
        background-color: rgb(254, 251, 251);
        padding: 30px;
        border-radius: 10px;
        .api-item {
          flex: 1 0 calc(30% - 25px);
          height: 100px;
          border: 1px solid #ccc;
          box-sizing: border-box;
          display: flex;
          align-items: center;
          justify-content: center;
          img {
            width: 40px;
            margin-right: 10px;
          }
        }
      }
    }
  }
}
</style>